from selenium.webdriver.common.by import By

from BasePage.basepage import BasePage


class EnterHome(BasePage):
    def __init__(self, driver):
        super().__init__(driver)
        self.img_02 = (By.ID, 'com.tpshop.malls:id/start_img')

    def enter_swip_home(self):
        for i in range(3):
            self.driver.swipe(1340, 1250, 200, 1250)
        self.click_element(self.img_02)
